package com.qfedu.buy.api.service;

import com.qfedu.buy.common.config.SystemConfig;
import com.qfedu.buy.common.dto.UserLoginDto;
import com.qfedu.buy.common.dto.UserOpDto;
import com.qfedu.buy.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: NeighborBuy
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2021-01-28 10:11
 */
@FeignClient(value = "oauthserver")
public interface AuthService {
    @GetMapping("/server/user/checkphone.do")
    R checkPhone(@RequestParam String phone);
    @GetMapping("/server/user/checktoken.do")
    R checkToken();
    @PostMapping("/server/user/register.do")
    R add(@RequestBody UserOpDto dto);
    @PostMapping("/server/user/login.do")
    R login(@RequestBody UserLoginDto dto);
}